package object;

/**
 * @author galen
 * @description 类的封装
 */
public class Book {
     // 图片名称
    private String bookName;
     // 总页数
    private int bookTotalNum;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getBookTotalNum() {
        return bookTotalNum;
    }

    public void setBookTotalNum(int bookTotalNum) {
        this.bookTotalNum = bookTotalNum;
    }

    public void details() {
        System.out.println(this.bookName+"这本书的总页数是："+this.bookTotalNum);
    }

    
}